<div class="dependencias form">
<?php echo $form->create('Materia');?>
<fieldset class="ui-corner-all">
 <legend class="ui-widget-header ui-corner-all ui-state-active"><?php __('Edit Materia');?></legend>
  <div align="left" style="padding:1px 2px 1px 2px;"><?php $session->flash(); ?></div>
<?php
	echo $form->hidden('id');
	echo $form->input('codigo', array('size'=>10, 'readonly'=>true));
    echo $form->input('descripcion', array('size'=>60));          
	echo $form->input('tipo_materia', array('options'=>$tipo_materias, 'label'=>'Tipo'));           	
?>
</fieldset>
<div class="actions"><p>
<?php echo $form->submit('Guardar', array('div' => false,'class' => 'btnsave', 'title'=>'Guardar'));?>
<?php echo $html->link('Cancelar', array('action'=>'index'), array('class'=>'lnkbutton btncancel', 'title'=>'Camcelar'));?>
</p></div>
<?php echo $form->end();?>
</div>